import request from '@/utils/request'
// 收入记录列表
export function qryPubIncomeRecord(data) {
	return request({
		url: '/order_admin/trade/qryPubIncomeRecord',
		method: 'post',
		data: data
	})
}
// 退款记录列表
export function qryPubRefundRecord(data) {
	return request({
		url: '/order_admin/trade/qryPubRefundRecord',
		method: 'post',
		data: data
	})
}
// 订单详情
export function qryPubRefundListByOrderNo(orderNo) {
  return request({
    url: '/order_admin/trade/qryPubRefundListByOrderNo/' + orderNo,
    method: 'post'
  })
}
/**
 * 汇总订单退款
 */
export function pubRefund(baseData) {
  const { orderNo, remark } = baseData
  let data = { orderNo }
  let url = '/order_admin/trade/pubRefund/'
  return request({
    url, data,
    method: 'post'
  })
}
